import {
	request,
	RequestEnum,
	ContentTypeEnum
} from "@/utils/request.js"

// 添加商品到购物车
export const reqAddShop2Cart = data => request(`/cart/add`, RequestEnum.POST, data)

// 删除商品
export const reqDeleteShop = id => request(`/cart/delete/${id}`, RequestEnum.DELETE)

// 分页查询购物车商品
export const reqShopPage = data => request(`/cart/select`, RequestEnum.GET, data)

// 修改商品
export const reqUpdateShop = data => request(`/cart/update`, RequestEnum.PUT, data)